/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.lucava.boatskeeper.client.service;

import com.google.gwt.user.client.rpc.AsyncCallback;
import java.util.List;
import org.lucava.boatskeeper.shared.dto.BoatDto;

/**
 *
 * @author glenn
 */
public interface BoatServiceAsync {

    public void getBoats(AsyncCallback<List<BoatDto>> asyncCallback);

    public void getBoat(Integer id, AsyncCallback<BoatDto> asyncCallback);

    public void saveBoat(BoatDto boat, AsyncCallback<Boolean> asyncCallback);

    public void removeBoat(BoatDto boat, AsyncCallback<Boolean> asyncCallback);

    public void removeBoats(List<Integer> boatIds, AsyncCallback<Boolean> asyncCallback);
}
